//
// Created by jsjxsy on 2022/12/2.
//
#include <stdlib.h>
#include <stdio.h>
#define COLS 5 //行
#define ROWS 4 //列
int main(void) {
  int **a = (int *) malloc(sizeof(int) * ROWS);
  for (int i = 0; i < COLS; i++) {
    a[i] = (int *) malloc(sizeof(int) * COLS);
  }
  for (int i = 0; i < COLS; i++) {
    for (int j = 0; j < ROWS; j++) {
      a[i][j] = i + j;
      printf("a[%d][%d]=%d\n", i, j, a[i][j]);
    }
  }
  return 0;
}